#ifndef     __HEAT_INFOS_H
#define     __HEAT_INFOS_H

#include "./store.h"

namespace cfg {

struct HeatInfo {

    uint32_t tank_draw_time = 10 * 60 * 1000; // 水箱抽水超时
    uint32_t hot_draw_time = 5 * 60 * 1000; // 锅炉抽水超时
    
    uint32_t hot_water_heat_time = 10 * 60 * 1000; // 锅炉加热超时
    uint32_t hot_steam_heat_time = 10 * 60 * 1000; // 蒸汽加热超时
    uint32_t hot_water_temp = 90; // 锅炉加热温度
    uint32_t hot_steam_temp = 120; // 蒸汽加热温度

    uint32_t flow = 1000;

    void reset() {
        tank_draw_time = 10 * 60 * 1000;
        hot_draw_time = 5 * 60 * 1000;
        hot_water_heat_time = 10 * 60 * 1000;
        hot_steam_heat_time = 10 * 60 * 1000;
        hot_water_temp = 90;
        hot_steam_temp = 120;
        flow = 1000;
    }
};

extern Store<HeatInfo, pub_driver::flash::DATA_ADDR> heatInfo;

}

#endif
